import config from "@/config"
import http from "@/utils/request"

export default {
    page: {
        url: `${config.API_URL}/business/notice/page`,
        name: "分页列表",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    list: {
        url: `${config.API_URL}/business/notice/list`,
        name: "全部列表",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    detail: {
        url: `${config.API_URL}/business/notice/detail`,
        name: "详情",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    add: {
        url: `${config.API_URL}/business/notice/add`,
        name: "新增",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    update: {
        url: `${config.API_URL}/business/notice/update`,
        name: "修改",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    delete: {
        url: `${config.API_URL}/business/notice/delete`,
        name: "删除",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    batchDelete: {
        url: `${config.API_URL}/business/notice/batchDelete`,
        name: "批量删除",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
}